﻿@model vngoodlife.Member

@{
    ViewBag.Title = "CreateAdmin";
}

<div class="onecolumn">
    <div class="header">
        <span>Xem chi tiết bình luận</span>
        <div class="switchbutton">
           <a href="@Url.Action("AdminList_BackEnd", "Admin")" class="button">Danh sách Admin</a>
        </div>
    </div>
    <br class="clear" />
    <div class="content">

        <div class="display-label error">
            <div class="errorcontent">
                <p>@Html.ValidationMessage("NoticePage")</p>
                <p>@Html.ValidationMessageFor(model => model.MemberName)</p>
                <p>@Html.ValidationMessageFor(model => model.FullName)</p>
                <p>@Html.ValidationMessageFor(model => model.Email)</p>
                <p>@Html.ValidationMessageFor(model => model.Address)</p>
                <p>@Html.ValidationMessageFor(model => model.Phone)</p>
                <p>@Html.ValidationMessageFor(model => model.SocialNumber)</p>
                <p>@Html.ValidationMessageFor(model => model.Birthday)</p>
            </div>
        </div>

        @using (Html.BeginForm("CreateAdminSubmit", "Admin", FormMethod.Post, new { id = "CreateAdminForm" }))
        {
            @Html.AntiForgeryToken(vngoodlife.Util.AntiKey.EditSalt)
            @Html.ValidationSummary(true)

        <div>
            <div class="editor_left2">
                <label>@Html.LabelFor(model => model.MemberName):</label><br />
                       @Html.TextBoxFor(model => model.MemberName, new { Maxlength = "20" })
                       
            </div>
            <div class="editor_middle2">
                <label>@Html.LabelFor(model => model.FullName):</label><br />
                       @Html.TextBoxFor(model => model.FullName, new { Maxlength = "50" })
            </div>
            <div class="editor_middle2B">
                <label>@Html.LabelFor(model => model.GenderID):</label><br />
                       @Html.DropDownListFor(model => model.GenderID, ViewBag.SexOfAdmin as SelectList)
            </div>

@*            <div class="editor_right2">
                <label>@Html.LabelFor(model => model.IsActive):</label><br />
                       @Html.EditorFor(model => model.IsActive)
            </div>*@
        </div>
        <br class="clear" />
        <br />
        <div>
            <div class="editor_left2">
                <label>@Html.LabelFor(model => model.Email):</label><br />
                       @Html.TextBoxFor(model => model.Email, new { Maxlength = "200" })
            </div>
            <div class="editor_middle2">
                <label>@Html.LabelFor(model => model.Address):</label><br />
                       @Html.TextBoxFor(model => model.Address, new { Maxlength = "250" })
            </div>
            <div class="editor_middle2B">
                <label>@Html.LabelFor(model => model.RoleID):</label><br />
                       @Html.DropDownListFor(model => model.RoleID, ViewBag.RoleOfAdmin as SelectList)
            </div>

        </div>
        <br class="clear" />
        <br />
        <div>
             <div class="editor_left2">
                <label>@Html.LabelFor(model => model.Phone):</label><br />
                       @Html.TextBoxFor(model => model.Phone, new { Maxlength = "15" })
            </div>
            <div class="editor_middle2">
                <label>@Html.LabelFor(model => model.SocialNumber):</label><br />
                       @Html.TextBoxFor(model => model.SocialNumber, new { Maxlength = "10" })
            </div>
            <div class="editor_middle2B">
                <label>@Html.LabelFor(model => model.Birthday):</label><br />
                       @Html.EditorFor(model => model.Birthday, new { Maxlength = "10" })
            </div>
        </div>
        <br class="clear" />
        <br />
        <p>
            <input type="submit" value="Tạo Admin" style="margin: 0 2px"/>
            <a href="@Url.Action("CreateAdmin", "Admin")" class="button">Làm lại</a>
        </p>
    
        }

    </div>
</div>